﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Vit.Data
{
    public class SqlCondition : SqlClause
    {
        public SqlCondition()
        {
            ConditionFormat = "{0}";
        }

        public string Name { get; set; }
        public string ParameterName { get; set; }
        public object Value { get; set; }
        public DbType DataType { get; set; }
        public string ConditionFormat { get; set; }

        public override string ToSql()
        {
            return string.Format(ConditionFormat, Name, ParameterName);
        }
    }
}
